package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.OutboundPart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/6/10 12:53
 */
@Repository
public interface OutboundPartMapper extends BaseMapper<OutboundPart> {

    /**
     * 批量插入
     * @param outboundPartList
     * @return
     */
    int insertBatch(@Param(value = "list")List<OutboundPart> outboundPartList);

    /**
     * 批量修改归还数量
     * @param outboundPartList
     * @return
     */
    int updateBatchById(@Param(value = "list")List<OutboundPart> outboundPartList);

    /**
     * 根据outboundId彻底删除
     * @param outboundId
     * @return
     */
    int deleteBatchByOutboundId(@Param(value = "outboundId")String outboundId);
}
